Optimal. Leaf size=136 \[ \frac{A x \sqrt{\cos (c+d x)}}{2 \sqrt{b \cos (c+d x)}}+\frac{A \sin (c+d x) \cos ^{\frac{3}{2}}(c+d x)}{2 d \sqrt{b \cos (c+d x)}}-\frac{B \sin ^3(c+d x) \sqrt{\cos (c+d x)}}{3 d \sqrt{b \cos (c+d x)}}+\frac{B \sin (c+d x) \sqrt{\cos (c+d x)}}{d \sqrt{b \cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0556648, antiderivative size = 136, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 33, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.152, Rules used = {17, 2748, 2635, 8, 2633} \[ \frac{A x \sqrt{\cos (c+d x)}}{2 \sqrt{b \cos (c+d x)}}+\frac{A \sin (c+d x) \cos ^{\frac{3}{2}}(c+d x)}{2 d \sqrt{b \cos (c+d x)}}-\frac{B \sin ^3(c+d x) \sqrt{\cos (c+d x)}}{3 d \sqrt{b \cos (c+d x)}}+\frac{B \sin (c+d x) \sqrt{\cos (c+d x)}}{d \sqrt{b \cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 17
Rule 2748
Rule 2635
Rule 8
Rule 2633
Rubi steps
\begin{align*} \int \frac{\cos ^{\frac{5}{2}}(c+d x) (A+B \cos (c+d x))}{\sqrt{b \cos (c+d x)}} \, dx &=\frac{\sqrt{\cos (c+d x)} \int \cos ^2(c+d x) (A+B \cos (c+d x)) \, dx}{\sqrt{b \cos (c+d x)}}\\ &=\frac{\left (A \sqrt{\cos (c+d x)}\right ) \int \cos ^2(c+d x) \, dx}{\sqrt{b \cos (c+d x)}}+\frac{\left (B \sqrt{\cos (c+d x)}\right ) \int \cos ^3(c+d x) \, dx}{\sqrt{b \cos (c+d x)}}\\ &=\frac{A \cos ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{2 d \sqrt{b \cos (c+d x)}}+\frac{\left (A \sqrt{\cos (c+d x)}\right ) \int 1 \, dx}{2 \sqrt{b \cos (c+d x)}}-\frac{\left (B \sqrt{\cos (c+d x)}\right ) \operatorname{Subst}\left (\int \left (1-x^2\right ) \, dx,x,-\sin (c+d x)\right )}{d \sqrt{b \cos (c+d x)}}\\ &=\frac{A x \sqrt{\cos (c+d x)}}{2 \sqrt{b \cos (c+d x)}}+\frac{B \sqrt{\cos (c+d x)} \sin (c+d x)}{d \sqrt{b \cos (c+d x)}}+\frac{A \cos ^{\frac{3}{2}}(c+d x) \sin (c+d x)}{2 d \sqrt{b \cos (c+d x)}}-\frac{B \sqrt{\cos (c+d x)} \sin ^3(c+d x)}{3 d \sqrt{b \cos (c+d x)}}\\ \end{align*}
Mathematica [A] time = 0.0983586, size = 69, normalized size = 0.51 \[ \frac{\sqrt{\cos (c+d x)} (3 A \sin (2 (c+d x))+6 A c+6 A d x+9 B \sin (c+d x)+B \sin (3 (c+d x)))}{12 d \sqrt{b \cos (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.325, size = 74, normalized size = 0.5 \begin{align*}{\frac{2\,B\sin \left ( dx+c \right ) \left ( \cos \left ( dx+c \right ) \right ) ^{2}+3\,A\cos \left ( dx+c \right ) \sin \left ( dx+c \right ) +3\,A \left ( dx+c \right ) +4\,B\sin \left ( dx+c \right ) }{6\,d}\sqrt{\cos \left ( dx+c \right ) }{\frac{1}{\sqrt{b\cos \left ( dx+c \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 2.04084, size = 92, normalized size = 0.68 \begin{align*} \frac{\frac{3 \,{\left (2 \, d x + 2 \, c + \sin \left (2 \, d x + 2 \, c\right )\right )} A}{\sqrt{b}} + \frac{B{\left (\sin \left (3 \, d x + 3 \, c\right ) + 9 \, \sin \left (\frac{1}{3} \, \arctan \left (\sin \left (3 \, d x + 3 \, c\right ), \cos \left (3 \, d x + 3 \, c\right )\right )\right )\right )}}{\sqrt{b}}}{12 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.68327, size = 645, normalized size = 4.74 \begin{align*} \left [-\frac{3 \, A \sqrt{-b} \cos \left (d x + c\right ) \log \left (2 \, b \cos \left (d x + c\right )^{2} + 2 \, \sqrt{b \cos \left (d x + c\right )} \sqrt{-b} \sqrt{\cos \left (d x + c\right )} \sin \left (d x + c\right ) - b\right ) - 2 \,{\left (2 \, B \cos \left (d x + c\right )^{2} + 3 \, A \cos \left (d x + c\right ) + 4 \, B\right )} \sqrt{b \cos \left (d x + c\right )} \sqrt{\cos \left (d x + c\right )} \sin \left (d x + c\right )}{12 \, b d \cos \left (d x + c\right )}, \frac{3 \, A \sqrt{b} \arctan \left (\frac{\sqrt{b \cos \left (d x + c\right )} \sin \left (d x + c\right )}{\sqrt{b} \cos \left (d x + c\right )^{\frac{3}{2}}}\right ) \cos \left (d x + c\right ) +{\left (2 \, B \cos \left (d x + c\right )^{2} + 3 \, A \cos \left (d x + c\right ) + 4 \, B\right )} \sqrt{b \cos \left (d x + c\right )} \sqrt{\cos \left (d x + c\right )} \sin \left (d x + c\right )}{6 \, b d \cos \left (d x + c\right )}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (B \cos \left (d x + c\right ) + A\right )} \cos \left (d x + c\right )^{\frac{5}{2}}}{\sqrt{b \cos \left (d x + c\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]